<?php
function smarty_function_browse_usertype($params, &$smarty) {
	if( !isset( $params["selected_usertype_id"])) {
		$params["selected_usertype_id"] = 0;
	}
	
	$select = SilkForm::create_input_select(array("name" => "usertype_id"));
	
	$items = array_merge( array(0 => "Select Usertype"), $params["usertypes"]);
	$select .= SilkForm::create_input_options(array("items" => $items, "selected_value" => $params["selected_usertype_id"]));
	$select .= SilkForm::create_end_tag("select");
	return $select;
}
?>